<template>
  <div class="hello">
    <h1>{{ msg }}</h1>
    <h2>Essential Links</h2>
    <div class="page-cell">
      <div class="page-title">Cell Swipe</div>
      <div>
        <div class="swipe-wrapper">
          <mt-swipe :auto="4000">
            <mt-swipe-item class="item "><img src="../assets/logo.png" alt=""></mt-swipe-item>
            <mt-swipe-item class="item "> <img src="../assets/logo.png" alt=""></mt-swipe-item>
            <mt-swipe-item class="item "><img src="../assets/logo.png" alt=""></mt-swipe-item>
          </mt-swipe>
        </div>
      </div>
    </div>
    </div>
</template>

<script>
export default {
  name: 'HelloWorld',
  data () {
    return {
      msg: 'Welcome to Your Vue.js App'
    }
  },
  created () {
    this.rightButtons = [
      {
        content: 'Mark as Unread',
        style: { background: 'lightgray', color: '#fff' }
      },
      {
        content: 'Delete',
        style: { background: 'red', color: '#fff' },
        handler: () => this.$messagebox('delete')
      }
    ]
  },
  methods: {
    leftButtonHandler (evt) {
      console.log(123)
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang="less" rel="stylesheet/less">
  .swipe-wrapper{
    width: 100%;
    height: 640px;
   img{
     width: 100%;

   }
  }
  .swip-item-1{
    background: red;
  }
  .swip-item-2{
    background: blue;
  }
  .swip-item-3{
    background: green;
  }
  .item{
    text-align: center;
    font-size: 40px;
    color: white;
  }

  .button-wrapper{
    display: flex;
    height: 100px;
  }
  .flex-item{
    flex: 1;
    display: inline-block;
    text-align: center;
    height: 100%;
    line-height: 100%;
    font-size: 40px;
  }
  .prev-button{
    background: darkorange;
  }
  .next-button{
    background: green;
  }
</style>
